/**
 * Created by liubin on 2014/8/30.
 */
/**
 * requirejs
 */
'use strict';
/**
 * 使用requirejs 的总入口
 */
require.config({
    // 基本路径
    baseUrl: '/static/js',
    //By default load any module IDs from js/lib

    // 接续基本路径的文件或者目录
    // 文件后不加js
    paths: {
        'i18n': 'i18n',
        'angular': 'angular/angular',
        'angular-animate' : 'angular/angular-animate',
        'angular-cookies' : 'angular/angular-cookies',
        'angular-loader' : 'angular/angular-loader',
        'angular-mocks' : 'angular/angular-mocks',
        'angular-resource': 'angular/angular-resource',
        'angular-route': 'angular/angular-route',
        'angular-sanitize': 'angular/angular-sanitize',
        'angular-touch': 'angular/angular-touch',
        'angular-datatables': 'angular/angular-datatables',
        'angular-xeditable': 'angular/xeditable',
        'ui-bootstrap': 'angular/ui-bootstrap-custom-tpls-0.10.0',
        'app': 'app',
        'controllers': 'app/controllers',
        'directives': 'app/directives',
        'filters': 'app/filters',
        'services': 'app/services',
        'route': 'app/route',
        'login': 'app/login',
        'user': 'app/user',
        'role': 'app/role'
    },
    // 模块的详细配置
    shim: {
        // exports 对外返回的对象
        'i18n': {exports: 'i18n'},
        'angular': { exports: 'angular' },
        // 依赖的模块
        'angular-sanitize': { deps: ['angular'] },
        'angular-resource': { deps: ['angular'] },
        'angular-route': { deps: ['angular'] },
        'angular-datatables': { deps: ['angular']},
        'ui-bootstrap': {deps: ['angular']},
        'angular-xeditable': {deps: ['angular']},
        'login': {deps: [ 'app']},
        'user': {deps: ['app']},
        'role': {deps: ['app']},
        'route': {deps: ['app']}
    }
});